/**
 *
 * © Bahadir Zeren 2011
 * bzeren@gmail.com
 * No warranties, express or implied, are made for this program.
 *
 */

package org.baatar.util;

import java.util.Random;

public class RandomUtil {

    private Random r = new Random();

    /** Creates a new instance of RandomUtil */
    public RandomUtil() {
    }
 
    public double getRandDouble() {
        return r.nextDouble();
    }

    public int getRandNumber(int stretch) {
        return (int) Math.floor(r.nextDouble() * stretch);
    }
}
